# Contributor: Keith Maxwell <keith.maxwell@gmail.com>
# Maintainer: Keith Maxwell <keith.maxwell@gmail.com>
pkgname=vint
pkgver=0.3.21
pkgrel=7
pkgdesc="Fast and Highly Extensible Vim script Language Lint"
url="https://github.com/Vimjas/vint"
arch="noarch"
license="MIT"
depends="py3-yaml py3-chardet py3-ansicolor py3-setuptools"
checkdepends="py3-pytest py3-pytest-cov py3-coverage"
# no tests in artifact on PyPI
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/Vimjas/vint/archive/v$pkgver.tar.gz
	01-python3-shebang.patch
	"

build() {
	python3 setup.py build
}

check() {
	python3 -m pytest
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="47e832d382952cb16bcc233eefa1f06ca74f95eb445d7f96d6804391b91a2c8a8e7b749b7f33f65aed9d3bdc1ff5e5332a62c3935969395f16a854f0f66e383b  vint-0.3.21.tar.gz
e777c74ffc16964848f22f051281a284fa05774bd7be9417ea5ad033ea9bc264687df10151e08bf5d319aa7168481e5dd8e3366a942af4fe739ef64511268fa4  01-python3-shebang.patch"
